<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      /*行内块标签在文件中换行会有一个空白的距离*/
      div{
        width: 100px;
        height: 100px;
        display: inline-block;
      }
      .one {
        background-color: pink;
      }
      .two {
        background-color: skyblue;
      }
    </style>

</head>
<body>
<div class="one">one</div>
<div class="two">two</div>
</body>
</html>